<?php
require 'include/global.php';
require './include/validate.php';
require './include/all_left.php';
include("FCKeditor/fckeditor.php") ;

require_once 'include/advisory_db.php';


$smarty->display('header.tpl');
$smarty->display('allleft.tpl');
      


$re_fname = $_POST[re_fname];
$re_lname = $_POST[re_lname];
$re_email = $_POST[re_email];
$re_address1 = $_POST[re_address1];
$re_address2 = $_POST[re_address2];
$re_lostate = $_POST[re_lostate];
$re_locountry = $_POST[re_locountry];
$re_locity = $_POST[re_locity];
$re_phone1 = $_POST[re_phone1];
$re_phone2 = $_POST[re_phone2];
$re_jobtype = $_POST[re_jobtype];
$re_jobindustry = $_POST[re_jobindustry];
$re_jobtitle = $_POST[re_jobtitle];
$re_yearexp = $_POST[re_yearexp];
$re_edulevel = $_POST[re_edulevel];
$re_proflicense = $_POST[re_proflicense];
$re_mgmt = $_POST[re_mgmt];
$re_profit = $_POST[re_profit];
$re_spoken = $_POST[re_spoken];
$re_prolang = $_POST[re_prolang];
$re_ip = $_POST[re_ip];
$re_ussecurity = $_POST[re_ussecurity];
$re_authorize = $_POST[re_authorize];
$re_detail = $_POST[re_detail];
$re_comments = $_POST[re_comments];
$re_regtime  = $_POST[re_regtime];
$re_upload   = $_POST[re_upload];
$re_jobsearchstatus = $_POST[re_jobsearchstatus];
$re_describeme = $_POST[re_describeme];
$re_favoriatebook = $_POST[re_favoriatebook];
$re_highachieve = $_POST[re_highachieve];
$re_iplan = $_POST[re_iplan];
$re_iliketo = $_POST[re_iliketo];
$re_comments = $_POST[re_comments];
$re_prvemployer = $_POST[re_prvemployer];
$re_prvempstatus = $_POST[re_prvempstatus];
$re_professavilable = $_POST[re_professavilable];
$re_currentpay  = $_POST[re_currentpay];
$re_desiredpay= $_POST[re_desiredpay];
$re_benefits= $_POST[re_benefits];
$re_schoolattend= $_POST[re_schoolattend];
$re_personalweb = $_POST[re_personalweb];
$re_private     = $_POST[re_private];
$re_updtime     = $_POST[re_updtime];
$re_sponsorship = $_POST[re_sponsorship];

 
		ob_clean();
		ob_start();
		$view = 1;

		$cpforms->formheader(array ('title' => '','name' => 'article','enctype' => 'multipart/form-data'));
		
		$cpforms->longline(array('title'=>"Contact Information"));
		$cpforms->gethightext(array ('text' => "First Name",'name' => "re_fname",'only' => 1,'value' => "$re_fname",'view' => "$view"));
		$cpforms->gethightext(array ('text' => "Last Name",'name' => "re_lname",'only' => 1,'value' => "$re_lname",'view' => "$view"));
		$cpforms->gethightext(array ('text' => "Contact Email",'name' => "re_email",'only' => 1,'value' => "$re_email",'view' => "$view"));
		$cpforms->gethightext(array ('text' => "Primary Phone",'name' => "re_phone1",'only' => 1,'value' => "$re_phone1",'view' => "$view"));
		
		$cpforms->gethightext(array ('text' => "City",'only' => 1,'name' => "re_locity",'value' => "$re_locity",'view' => "$view"));
		$cpforms->makeselect(array ('one'=>1,'text' => "State",'name' => "re_lostate",'only' => 1,'option' => $state,'selected' => "$re_lostate",'view' => "$view",'viewfunction' => 'state'));
		$cpforms->makeselect(array ('one'=>1,'text' => "Country",'name' => "re_locountry",'only' => 1,'option' => $country,'selected' => "$re_locountry",'view' => "$view",'viewfunction' => 'country'));

		$cpforms->makeselect(array ('one'=>1,'text' => "Years of Work Experience",'name' => "re_yearexp",'only' => 1,'option' => $yearexp2,'selected' => "$re_yearexp",'view' => "$view",'viewfunction' => 'yearexp'));
		$cpforms->makeselect(array ('one'=>1,'text' => "Years of People Mgmt Experience",'name' => "re_mgmt",'only' => 1,'option' => $yearexp2,'selected' => "$re_mgmt",'view' => "$view",'viewfunction' => 'yearexp'));
		$cpforms->makeselect(array ('one'=>1,'text' => "Highest Degree",'name' => "re_edulevel",'only' => 1,'option' => $education,'selected' => "$re_edulevel",'view' => "$view",'viewfunction' => 'education','icon'=>"' Indicate the highest level of education achieved here.', WIDTH, 200, SHADOW, true"));


		$cpforms->maketextarea(array ('text' => "Schools Attended",'id'=>"re_schoolattend",'name' => "re_schoolattend",'value' => stripslashes($re_schoolattend),'view' => "$view"));
		$cpforms->gethightext(array ('text' => "Current Job Title",'name' => "re_jobtitle",'only' => 1,'value' => "$re_jobtitle",'view' => "$view"));
		$cpforms->gethightext(array ('text' => "Current Base Pay",'name' => "re_currentpay",'value' => "$re_currentpay",'view' => "$view",'icon'=>"'Indicate current annual base salary', WIDTH, 200, SHADOW, true","prev"=>"$","next"=>"(No Commas)","size"=>"10"));
		$cpforms->gethightext(array ('text' => "Desired Base Pay",'name' => "re_desiredpay",'value' => "$re_desiredpay",'view' => "$view",'icon'=>"'Indicate desired annual base salary', WIDTH, 200, SHADOW, true","prev"=>"$","next"=>"(No Commas)","size"=>"10"));
		$cpforms->makefck(array ('text' => "Type or Paste Resume Details Here",'name' => "re_detail",'id'=>"re_detail",'value' => stripslashes($re_detail),'view' => "$view"));


		echo '<tr class="tbhead">
				<td bgcolor="#f0f0f0" align="center" colspan="2">
				<input class="bginput button-secondary" type="button" onclick="window.close()" value=" Close " />
				</td>
				</tr>
				</table></td></tr></form></table>
				';

		$reg_data = ob_get_contents();
		ob_end_clean();

		if ($err != '')
		{
			$smarty->assign("err", $err);
		}
		$smarty->assign("reg", $reg_data);

		$title   = "Preview Resume";
		$smarty->assign('title',$title);
		$smarty->display('reg.tpl');


$smarty->display('allright.tpl');
$smarty->display('footer.tpl');
?>
